package com.zx.yixun.ui.adapter;

import android.text.TextUtils;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zx.yixun.R;
import com.zx.yixun.data.ChooseOneBean;

import org.jetbrains.annotations.NotNull;

public class ChooseOneAdapter extends BaseQuickAdapter<ChooseOneBean, BaseViewHolder> {
    public ChooseOneAdapter() {
        super(R.layout.item_chooseone);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ChooseOneBean bean) {
        if (!TextUtils.isEmpty(bean.getProcessStepName())){
            baseViewHolder.setText(R.id.tv_name, bean.getProcessStepName());
        }
        if (!TextUtils.isEmpty(bean.getProductNamae())){
            baseViewHolder.setText(R.id.tv_name, bean.getProductNamae());
        }
    }
}
